<!DOCTYPE html>
<!-- saved from url=(0020)http://vps.kkwen.cn/ -->
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Mobile Specific Meta -->
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	
	<!-- Site Title -->
	<title>vps-downloader</title>

	<!--Google Font
			============================================= -->
	<link href="https://fonts.googleapis.com/css?family=Montserrat:300,500,600" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500i" rel="stylesheet">

	<!--CSS
			============================================= -->
	<link rel="stylesheet" href="./index_files/themify-icons.css">
	<link rel="stylesheet" href="./index_files/linearicons.css">
	<link rel="stylesheet" href="./index_files/font-awesome.min.css">
	<link rel="stylesheet" href="./index_files/bootstrap.css">
	<link rel="stylesheet" href="./index_files/magnific-popup.css">
	<link rel="stylesheet" href="./index_files/nice-select.css">
	<link rel="stylesheet" href="./index_files/animate.min.css">
	<link rel="stylesheet" href="./index_files/owl.carousel.css">
	<link rel="stylesheet" href="./index_files/main.css">
</head>

<body>

	<header id="header">
		<div class="container">
			<div class="row align-items-center justify-content-between d-flex">
				<div id="logo">
					<a href="http://dlgcy.com/"><img src="./index_files/logo.png" alt="" title=""></a>
				</div>
			</div>
		</div>
		<script type="text/javascript">
    		function download() {
    			var input = document.getElementById("url");//通过id获取文本框对象
    			var prefix = 'http://frps.dlgcy.com:9099/vps?url=';
    			var reg_schema = /^[a-z]+:\/\//;
    			var schema = /^(http|https):\/\//;
    			var reg_domain = /[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+/;
    			var value;
    			if(input.value == ''){
    				alert('没有输入内容,将下载测试文件');
					input.value = 'https://nginx.org/download/nginx-1.16.0.tar.gz';
					//return;
    			} else {
    				s_schema = input.value.search(reg_schema);
    				
    				// 没有声明协议
    				if (s_schema == -1){
    					if(input.value.search(reg_domain) == -1){
    						alert('链接错误,未包含域名');
    						return
    					} else {
    						value = prefix + 'http://' + input.value;
    					}
    				}
    				// 声明了协议
    				else {
    					// 非http或https协议
    					if (input.value.search(schema) == -1){
    						alert('只支持http或https链接');
    						return ;
    					// 正确的协议
    					} else {
    						value = prefix + input.value;
    					}
    				}
    			}
        		window.open(value); 

    	}
		</script>
	</header>
	
	<section class="home-banner-area relative">
		<div class="container">
			<div class="row fullscreen d-flex align-items-center justify-content-center" style="height: 696px;">
				<div class="banner-content col-lg-8 col-md-12">
					<h1 class="wow fadeIn" data-wow-duration="2s" style="visibility: visible; animation-duration: 2s; animation-name: fadeIn;">VPS Downloader <br> </h1> 
					
					<div class="input-wrap">
						<form action="http://frps.dlgcy.com:9092" class="form-box d-flex justify-content-between" _lpchecked="1">
							<input id="url" type="text" placeholder="请输入URL" class="form-control" name="username" autocomplete="off" style="background-image: url(&quot;&quot;); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;">
							<button type="button" class="btn search-btn" onclick="download()">下载</button>
						</form>
					</div>
					<h4 class="text-white">能加速的下载器</h4>
					<h4 class="text-white"></h4>
					<h4 class="text-white"></h4>
					<h4 class="text-white"></h4>
					<h4 class="text-white"></h4>
					<h4 class="text-white"></h4>
				</div>
			</div>
		</div>
		<div class="rocket-img">
			<img src="./index_files/rocket.png" alt="">
		</div>
	</section>

	<script src="./index_files/jquery-2.2.4.min.js"></script>
	<script src="./index_files/popper.min.js"></script>
	<script src="./index_files/bootstrap.min.js"></script>
	<script src="./index_files/easing.min.js"></script>
	<script src="./index_files/hoverIntent.js"></script>
	<script src="./index_files/superfish.min.js"></script>
	<script src="./index_files/jquery.ajaxchimp.min.js"></script> 
	<script src="./index_files/jquery.magnific-popup.min.js"></script>
	<script src="./index_files/owl.carousel.min.js"></script>
	<script src="./index_files/owl-carousel-thumb.min.js"></script>
	<script src="./index_files/jquery.sticky.js"></script>
	<script src="./index_files/jquery.nice-select.min.js"></script>
	<script src="./index_files/parallax.min.js"></script>
	<script src="./index_files/waypoints.min.js"></script>
	<script src="./index_files/wow.min.js"></script>
	<script src="./index_files/jquery.counterup.min.js"></script>
	<script src="./index_files/mail-script.js"></script>
	<script src="./index_files/main.js"></script>

</body>
</html>